package cn.edu.nyist.integration.service;

import cn.edu.nyist.integration.common.ServerResponse;
import cn.edu.nyist.integration.entity.IntegralItem;
import cn.edu.nyist.integration.entity.Integration;
import cn.edu.nyist.integration.vo.UserCreditVO;
import com.github.pagehelper.PageInfo;

import java.util.List;

/*用户积分操作*/
public interface IntegrationService {

    ServerResponse<Integration> selectById(Long userId);

    PageInfo selectRank(int pageNum, int pageSize, String username);

    ServerResponse updateTotalAndInsertRecord(IntegralItem item);

    PageInfo getDetailList(int pageNum,int pageSize,String username);

    ServerResponse<UserCreditVO> queryScoreRank(Long userId);
}
